package com.soul;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/*
linux下
/opt/data/{appId}/config-cache
Windows下
C:\opt\data{appId}\config-cache
*/

@RestController
public class MainController {

	//apollo中的DEV环境配置了 GirlName, 启动参数为 -Denv=DEV
	@Value("${GirlName}")
	private String gn;
	
	@GetMapping("/")
	public String list() {
		System.out.println(gn);
		
		return "11" + gn;
	}
	
}

